﻿using System;

namespace PlugNT.Cms.Model
{
    public class AdminerInfo
    {

        private int _id;
        private string _no;
        private string _name;
        private string _password;
        private int _money;
        private string _qq;
        private string _email;
        private int _age;
        private DateTime _logintime;
        private string _sex;
        private string _pic;
        private string _power;
        private string _username;
        //是否锁定(不在数据库中)
        private bool _islock=false;

        public AdminerInfo(){ }
        /// <summary>
        /// 用户id
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 用户编号
        /// </summary>
        public string no
        {
            set { _no = value; }
            get { return _no; }
        }
        /// <summary>
        /// 用户名（英文）
        /// </summary>
        public string name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 密码
        /// </summary>
        public string password
        {
            set { _password = value; }
            get { return _password; }
        }
        /// <summary>
        /// 金钱（点数）
        /// </summary>
        public int money
        {
            set { _money = value; }
            get { return _money; }
        }
        /// <summary>
        /// QQ
        /// </summary>
        public string qq
        {
            set { _qq = value; }
            get { return _qq; }
        }
        /// <summary>
        /// 邮件
        /// </summary>
        public string email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// 年龄
        /// </summary>
        public int age
        {
            set { _age = value; }
            get { return _age; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime logintime
        {
            set { _logintime = value; }
            get { return _logintime; }
        }
        /// <summary>
        /// 性别
        /// </summary>
        public string sex
        {
            set { _sex = value; }
            get { return _sex; }
        }
        /// <summary>
        /// 头像（照片）
        /// </summary>
        public string pic
        {
            set { _pic = value; }
            get { return _pic; }
        }
        /// <summary>
        /// 权限
        /// </summary>
        public string power
        {
            set { _power = value; }
            get { return _power; }
        }
        /// <summary>
        /// 扩展名字（昵称）
        /// </summary>
        public string username
        {
            set { _username = value; }
            get { return _username; }
        }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public bool islock
        {
            get { return _islock; }
        }
        /// <summary>
        /// 设置锁定
        /// </summary>
        public void SetLock()
        {
            _islock = true;
        }
    }
}
